// 动态在head标签里添加js和css脚本
function addScript(src) {
    head = document.head || document.getElementsByTagName('head')[0];
    if (src.indexOf("js") == -1) {
        var style = document.createElement('style');
        style.setAttribute("rel", "stylesheet");
        style.setAttribute("href", src);
        head.appendChild(style);
    } else {
        var script = document.createElement('script');
        script.type = "text/javascript";
        script.setAttribute("src", src);
        head.appendChild(script);
    }
}
addScript('https://static.likepoems.com/cdn/argon/botui/botui.css')
// addScript('https://static.likepoems.com/cdn/argon/botui/botui.js')
// addScript('https://static.likepoems.com/cdn/javascript/onfocus.js')
// addScript('https://static.likepoems.com/cdn/argon/argon.css')



$(function () {
    // $('head').append(
    //     "<script async src='https://www.googletagmanager.com/gtag/js?id=G-3D4JEJ0YFX'><\/script>" +
    //     "<script>" +
    //     "window.dataLayer = window.dataLayer || [];" +
    //     "function gtag(){dataLayer.push(arguments);}" +
    //     "gtag('js', new Date());" +
    //     "gtag('config', 'G-3D4JEJ0YFX');" +
    //     "<\/script>"
    // )
    // $('body').prepend(
    //     "<video src='https://static.likepoems.com/cdn/cover/07.mp4' class='bg-video bg-video-day' autoplay='' loop='loop' muted=''></video>" +
    //     "<video src='https://static.likepoems.com/cdn/cover/05.mp4' class='bg-video bg-video-night' autoplay='' loop='loop' muted='''></video>"
    // )
    $('footer').prepend(
        "<p>Copyright © 2021-2025 · <a href='https://tongji.baidu.com/web/welcome/ico?s=6163596305e6cc239b29b68cf707e7d0' target='_blank' >百度统计</a></p>" +
        "<p>" +
        "<a target='_blank' href='http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=51172502000168'>" +
        "<img src='https://static.likepoems.com/cdn/beian.png' style='vertical-align: middle'> 川公网安备51172502000168号" +
        "</a>" +
        "</p>" +
        "<p><a target='_blank' href='http://beian.miit.gov.cn/'>蜀ICP备2021012733号</a></p>" +
        "<p id='runtime_span'></p>"
    )
})



